package cn.yunlang.zhangZhongFei.util;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author：yff @Package：cn.yunlang.flie.config @Project：take-taxis
 *
 * @name：WebConfig @Date：2025/5/23 14:20
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
    registry.addResourceHandler("/file/**").addResourceLocations("file:upload/");
  }
}
